@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:wght@400;700');

body, html 
{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Evita el scroll horizontal */
}

body, h1, h2,h3,span {
    font-family: 'Inria Serif', serif;
    color:#ffffff ;
}
p.menu
{
    color: #ffffff;
}

.div-main
{
    width: 100vw;  /* 100% del ancho de la ventana */
    height: 100vh; /* 100% del alto de la ventana */
    /* Estilos visuales (opcional) */
    background-color: #000000;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.div-content
{
    width: 95vw;  /* 100% del ancho de la ventana */
    height: 90vh; /* 100% del alto de la ventana */
    /*border: solid 1px #ffffff;*/
    border-radius: 15px;
}
.div-head
{
    display: flex;
    flex-direction: row;
    height: 15vh;
    border: solid 1px #ffffff;
    border-radius: 15px 15px 0px 0px;
}
.div-head-content
{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
    height: 15vh;
    gap: 25px;
    border-radius: 15px 15px 0px 0px;
    
}
img {
    width: 70%; /* No permite que sea más ancha que el div */
    height: 90%;    /* Mantiene la proporción */  
    cursor: pointer;
}
.div-body
{
    display: flex;
    flex-direction: row;
    height: 70vh;
}
.div-footer {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el separador horizontalmente */
    align-items: center;     /* Centra el separador verticalmente */
    height: 9vh;
    overflow: visible;       /* IMPORTANTE: permite que las cabezas sobresalgan */
}

/* Separador Quetzalcóatl */
        @keyframes oscilacion {
            0%, 100% { width: 70%; filter: drop-shadow(0 0 2px #363636); }
            50% { width: 75%; filter: drop-shadow(0 0 10px #7cccff); }
        }
        .separador {
            position: relative; width: 70%; margin: 40px auto;
            border-bottom: 2px solid #fff; line-height: 0.1em;
            /*animation: oscilacion 3s ease-in-out infinite;*/      
            margin: 0 auto;
            text-align: center;
        }
        .separador span { background: #000;  padding: 0 15px; letter-spacing: 2px; text-transform: uppercase; }

        /* Cabezas */
        .separador::before, .separador::after {
            content: ""; position: absolute; top: -20px; width: 40px; height: 40px;
            background: url('../../resources/quetzalcoatl_head.png') no-repeat center/contain;
            scale: 1.8;
        }
        .separador::before { left: -45px; }
        .separador::after { right: -45px; transform: scaleX(-1); }

        


.slide-img {
    
    position: absolute; /* Las saca del flujo normal para encimarlas */
    top: 53%; /* Opcional: centrado vertical */
    left: 50%; /* Opcional: centrado horizontal */
    transform: translate(-50%, -50%); /* Ajuste fino del centrado */
    
    width: 100%;
    height: 80%; /* Ajusta según necesites dejar espacio al texto */
    object-fit: contain; 
    opacity: 0;
    animation: transitionMode 16s infinite;
}

/* Control de tiempos para las 4 imágenes */
.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 4s; }
.slide-img:nth-child(3) { animation-delay: 8s; }
.slide-img:nth-child(4) { animation-delay: 12s; }

@keyframes transitionMode {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

.hero-text {
    color: #ffffff;
    font-size: 2.2vw;
    text-align: left;
    animation: reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 
                 0 0 20px rgba(255, 255, 255, 0.35);
    letter-spacing: 2px; /* Da aire y elegancia */
    padding-left: 2.5vw;
}

@keyframes reveal {
  0% {
    filter: blur(10px);
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    filter: blur(0);
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-text
{
    font-family: 'Inria Serif', serif !important;
    color: #ffffff;
    
    animation: reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 
                 0 0 20px rgba(255, 255, 255, 0.35);
    letter-spacing: 2px; /* Da aire y elegancia */
}
@keyframes secuenciaTacos {
    0%, 15% { opacity: 0; transform: translateY(10px); }
    20%, 45% { opacity: 1; transform: translateY(0); } /* Se mantiene visible */
    50%, 100% { opacity: 0; transform: translateY(-10px); }
}

.par-animado {
    position: absolute;
    top: 32%;
    left: 5%;
    transform: translate(-50%, -50%); /* Centrado perfecto */
    width: 90%;
    opacity: 0;
    animation: secuenciaTacos 10s ease-in-out infinite;
}

/* El segundo grupo empieza justo cuando el primero desaparece (segundo 5) */
.par-animado:nth-child(1) { animation-delay: 0s; }
.par-animado:nth-child(2) { animation-delay: 5s; }


    .card-row { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    width: 40vw;
    background-color: rgba(255, 255, 255, 0.08); /* Fondo muy sutil */
    border-radius: 10px;
    padding: 5px;
    margin-bottom: 10px;
    backdrop-filter: blur(5px); /* Difumina lo que hay detrás para leer mejor */
}

.card-row-menu
{
    display: flex; 
    align-items: center; 
    justify-content: flex-start;
    width: 25vw;
    height: 7vh;
    background-color: rgba(255, 255, 255, 0.08); /* Fondo muy sutil */
    border-radius: 10px;
    /*padding: 5px;*/
    margin-bottom: 10px;
    backdrop-filter: blur(5px);
}

.card-row-menuii {
    /* Mantenemos tu estilo visual de resalte */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40vw;
    height: 52vh;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    /* --- NUEVAS PROPIEDADES PARA EL BUCLE --- */
    position: absolute; /* Superpone todas las tarjetas */
    opacity: 0;         /* Ocultas por defecto */
    visibility: hidden;
    transition: opacity 1s ease-in-out; /* Transición suave */
}

/* Solo la tarjeta con la clase .active será visible */
.card-row-menuii.active {
    opacity: 1;
    visibility: visible;
}


.card-row p {
    font-family: 'Inria Serif', serif;
    font-size: 1.2vw;
    color: #ffffff;
    margin: 0;
}

    .logo-tecpatl { width: 50px; }
@keyframes vibrar {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-2px, -2px); }
  20% { transform: translate(2px, -1px); }
  30% { transform: translate(-3px, 1px); }
  40% { transform: translate(3px, 1px); }
  50% { transform: translate(-1px, -1px); }
  60% { transform: translate(1px, 2px); }
  70% { transform: translate(-1px, -2px); }
  80% { transform: translate(3px, 2px); }
  90% { transform: translate(-2px, -1px); }
  100% { transform: translate(0, 0); }
}

.div-order
{
    width: 35vw;
    display: flex; 
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: #7cccff !important;
    border-radius: 15px;
    padding: 5px 10px;
    animation: vibrar 1.2s linear infinite;
    will-change: transform; 
    cursor: pointer;
}

.div-order:hover
{
    animation-play-state: paused;
  transform: translate(0, 0);
}

/*SMARTPHONES*/
@media (max-width: 768px) 
{
    .div-main
    {
        align-items: start;
        padding-top: .3vh;
    }
    .div-head
    {
        display: flex;
        flex-direction: column;
        height: 18vh;
        /*border: solid 1px #ffffff;
        border-radius: 15px 15px 0px 0px;*/
    }
    .div-body
    {
        display: flex;
        flex-direction: column;
        height: 72vh;
    }
    .size-ii-custom{width: 100% !important;height: 23% !important; padding-top: 2% !important;}
    .size-ii-customii{width: 100% !important;height: 77% !important;top: 2%;}
    .size-vi
    {
        width: 100% !important;
    }
    img
    {
        width: 62%; /* No permite que sea más ancha que el div */
        /*height: 70%;    /* Mantiene la proporción */  
        cursor: pointer;
    }
    .hero-text 
    {
        font-size: 4.5vw !important;
        text-align: center;
        padding-left:.8%;
        padding-right: .8%;
    }
    .slide-img
    {
        top: 70% !important;
    }
    .card-row-menu{width: 80%;}
    .card-row-menuii
    {
        width: 80vw;
        height: 50vh;
        justify-content: start;
    }
    .price-mob{display:flex;flex-direction: column !important;width: 100% !important;justify-content: center;align-items: center; padding-top: 1vh;}
    .content-menu{display:flex;flex-direction: column !important;width: 100% !important;}
    .body-menu-mob{display:flex;flex-direction: column !important;width: 100% !important;margin: 0 !important;}
    .title-mob{display: flex; height: 7vh !important;justify-content: center !important;align-items: center !important;}
    h3
    {
        font-size: 6.5vw !important;
    }
    .separador {
            position: relative; width: 65%; margin: 40px auto;
            border-bottom: 2px solid #fff; line-height: 0.1em;
            /*animation: oscilacion 3s ease-in-out infinite;*/      
            margin: 0 auto;
            text-align: center;
        }
        .separador span { background: #000;  padding: 0 15px; letter-spacing: 2px; text-transform: uppercase; }

        /* Cabezas */
        .separador::before, .separador::after {
            content: ""; position: absolute; top: -20px; width: 40px; height: 40px;
            background: url('../../resources/quetzalcoatl_head.png') no-repeat center/contain;
            scale: 1.1;
        }
        .separador::before { left: -45px; }
        .separador::after { right: -45px; transform: scaleX(-1); }
    .div-order
    {
        width: 55vw;
        height: 4vh;
        margin-top: 1vh;
        
    }
    .order-mob
    {
        font-size: 20px !important;
    }
}

.title-mob
    {
        height: 9vh;
    }
.size-i
{
    width: 100%;
}
.size-ii
{
    width: 50%;
}
.size-ii-custom
{
    position: relative; /* Esto es vital para que las fotos no floten por toda la pantalla */
    width: 50%;
    overflow: hidden;
}
.size-ii-custom::after {
    content: "";
    position: absolute;
    right: 0;           /* Pegado al borde derecho */
    top: 50%;           /* Empezamos a la mitad */
    transform: translateY(-50%); /* Centramos verticalmente */
    
    width: 1.5px;         /* Grosor de la línea */
    height: 60%;        /* AQUÍ CONTROLAS EL LARGO (60% del alto total) */
    
    background-color: #ffffff; /* Color de la línea */
    opacity: 0.5;       /* Opcional: un toque sutil para elegancia */
     /* Gradiente: transparente -> blanco -> transparente */
    background: linear-gradient(
        to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%
    );
    
    /* Opcional: Un ligero resplandor para que resalte más en el fondo negro */
    filter: blur(.2px);
}
.size-ii-customii {
    position: relative; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%; /* Mantén tu ancho */
}
.size-iii
{
    width: 33%;
}
.size-iv
{
    width: 25%;
}
.size-v
{
    width: 20%;
}
.size-vi
{
    width: 16.5%;
}
.size-vii
{
    width: 60%;
}
.size-viii
{
    width: 40%;
}